using Dapper.Contrib.Extensions;

namespace Read.Models
{
    /// <summary>
    /// 节点类
    /// </summary>
    [Table(Tables.Node)]
    public class NodeModel
    {
        /// <summary>
        /// 节点Id
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 上级Id
        /// </summary>
        public int Pid { get; set; }

        /// <summary>
        /// 层级
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 节点的文本标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 模块
        /// </summary>
        public string App { get; set; }

        /// <summary>
        /// 控制器
        /// </summary>
        public string Controller { get; set; }

        /// <summary>
        /// 方法
        /// </summary>
        public string Action { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public string Parameter { get; set; }

        /// <summary>
        /// 类别1作为后台菜单显示,2不显示
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public int UpdateTime { get; set; }
    }
}